<?php
/**
 *User Module Error Code Define
 *
 */
 
 //User Login 
define ( 'USER_INVALIDED_PRIVILIAGE' , -3 ) ;
define ( 'USER_STATE_PAUSE' , -2 ) ;
define ( 'USER_LOGIN_INFO_INCORRECT' , -1 ) ;
define ( 'USER_VALIDED_SUCCESSFUL' , 1 ) ;

/**
 *Compact Module Error Code Define
 *
 */
 
//Compact Type 
define ( 'COMPACT_TYPE_ADD_SUCCESSFUL'     , 100000 ) ;
define ( 'COMPACT_TYPE_ADD_FAILD'          , 100001 ) ;
define ( 'COMPACT_TYPE_IS_ALREADE_HAVE'    , 100002 ) ;
define ( 'COMPACT_TYPE_UPDATE_SUCCESSFUL'  , 100003 ) ;
define ( 'COMPACT_TYPE_UPDATE_FAILD'       , 100004 ) ;
define ( 'COMPACT_TYPE_PARAMS_INVALIDED'   , 100005 ) ;
define ( 'COMPACT_TYPE_IN_USED'            , 100006 ) ;
define ( 'COMPACT_TYPE_DELETE_SUCCESSFUL'  , 100007 ) ;
define ( 'COMPACT_TYPE_DELETE_FAILD'       , 100008 ) ;

//Department Config
define ( 'DEPARTMENT_ADD_SUCCESSFUL'     , 100050 ) ;
define ( 'DEPARTMENT_ADD_FAILD'          , 100051 ) ;
define ( 'DEPARTMENT_IS_ALREADE_HAVE'    , 100052 ) ;
define ( 'DEPARTMENT_UPDATE_SUCCESSFUL'  , 100053 ) ;
define ( 'DEPARTMENT_UPDATE_FAILD'       , 100054 ) ;
define ( 'DEPARTMENT_PARAMS_INVALIDED'   , 100055 ) ;
define ( 'DEPARTMENT_IN_USED'            , 100056 ) ;
define ( 'DEPARTMENT_DELETE_SUCCESSFUL'  , 100057 ) ;
define ( 'DEPARTMENT_DELETE_FAILD'       , 100058 ) ;

//Position Config
define ( 'POSITION_ADD_SUCCESSFUL'     , 100100 ) ;
define ( 'POSITION_ADD_FAILD'          , 100101 ) ;
define ( 'POSITION_IS_ALREADE_HAVE'    , 100102 ) ;
define ( 'POSITION_UPDATE_SUCCESSFUL'  , 100103 ) ;
define ( 'POSITION_UPDATE_FAILD'       , 100104 ) ;
define ( 'POSITION_PARAMS_INVALIDED'   , 100105 ) ;
define ( 'POSITION_IN_USED'            , 100106 ) ;
define ( 'POSITION_DELETE_SUCCESSFUL'  , 100107 ) ;
define ( 'POSITION_DELETE_FAILD'       , 100108 ) ;

//User Module
define ( 'USER_ADD_SUCCESSFUL'           , 100150 ) ;
define ( 'USER_ADD_FAILD'                , 100151 ) ;
define ( 'USER_IS_ALREADER_HAVE'         , 100152 ) ;
define ( 'USER_UPDATE_SUCCESSFUL'        , 100153 ) ;
define ( 'USER_UPDATE_FAILD'             , 100154 ) ;
define ( 'USER_PARAMS_INVALIDED'         , 100155 ) ;
define ( 'USER_IN_USED'                  , 100156 ) ;
define ( 'USER_DELETE_SUCCESSFUL'        , 100157 ) ;
define ( 'USER_DELETE_FAILD'             , 100158 ) ;
define ( 'USER_CHANGE_STATUS_SUCCESSFUL' , 100159 ) ;
define ( 'USER_CHANGE_STATUS_FAILD'      , 100160 ) ;
